{% extends 'base.html' %}
{% block title %}{% if pageTitle %}{{ pageTitle }} - {% endif %}{{ i18n.headlineLatest }} - {% endblock %}

{% block content %}
<ul class="breadcrumb">
  <li><a href="/">{{ i18n.home }}</a> <span class="divider">/</span></li>
  <li class="active">{{ i18n.headlineLatest }}</li>
</ul>
{% for homeTag in homeTags %}
  {% if loop.index0 % 2 == 0 %}<div class="row">{% endif %}
  <div class="span4">
  <div class="{{ site and site.media and site.media.cls.boxtitle }}">{{ homeTag.name }}</div>
  {% with pageitems=homeTag.pages %}{% include 'pages-title.html' %}{% endwith %}
  </div>
  {% if loop.index0 % 2 == 1 or loop.index == loop.length %}</div>{% endif %}
{% endfor %}

{% for channel in channels %}
  {% if loop.index0 % 2 == 0 %}<div class="row">{% endif %}
  <div class="span4">
  <div class="{{ site and site.media and site.media.cls.boxtitle }}"><a href="{{ channel.url }}">{{ channel.name }}</a></div>
  {% with pageitems=channel.pages %}{% include 'pages-title.html' %}{% endwith %}
  </div>
  {% if loop.index0 % 2 == 1 or loop.index == loop.length %}</div>{% endif %}
{% endfor %}

{% endblock %}

